package cn.sn.mapper;

import cn.sn.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author: SuNing
 * @date: 2023/9/19 20:16
 * @version: 1.0
 */
@Mapper
public interface LoginMapper {

    /**
     * 选择用户
     *
     * @param loginName 登录名
     * @return {@link User}
     */
    @Select("select  * from sys_user where login_name = #{loginName}")
    User selectUser(String loginName);


    /**
     * 更新系统用户
     *
     * @param user 使用者
     */
    void updateSysUser(User user);
}
